package com.example.analysis.controller;

import com.example.analysis.dto.ClusterScoreDto;
import com.example.analysis.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/cluster_score")
public class ClusterScoreController {
    @Autowired
    private StudentService studentService;


    @PostMapping("/cluster")
    List<ClusterScoreDto> getCluster(String className, String subName, String clusterNum) {
        return studentService.getScoreSet(className, subName);
    }
}
